#-------------------------------------------------
#
# Project created by QtCreator 2011-01-02T09:13:11
#
#-------------------------------------------------

QT       += core gui

TEMPLATE = app

CONFIG += debug_and_release

#add path to development qmobex library
#LIBS += -L/media/files/c++/qmobex/build
#INCLUDEPATH += /media/files/c++/qmobex/src

CONFIG(debug, debug|release) {
#Debug configuration
    TARGET = qsamsungpcdbg
    #add qmoobex debug library
    #LIBS    += -lqmobexdebug
 }
 else {
#Release configuration
    TARGET = qsamsungpc

    #add qmoobex library
    #LIBS    += -lqmobex

    #Turn off debug output
    DEFINES += QT_NO_DEBUG_OUTPUT
 }
###########################
#   INSTALATION
###########################

#Binary
target.path = /usr/bin
INSTALLS += target

#Desktop
desktopentry.path = /usr/share/applications
desktopentry.files = qsamsungpc.desktop
INSTALLS += desktopentry

#Documentation
    #Qsamsungpc
    DocDir.path = /usr/share/doc/$$TARGET
    DocDir.files += \
        LICENSE.txt \
        COPYING.txt \

    INSTALLS += DocDir

    #Libvcard
    libvcardDocDir.path = /usr/share/doc/$$TARGET/libvcard
    libvcardDocDir.files +=\
        libvcard/AUTHORS \
        libvcard/LICENSE

    INSTALLS += libvcardDocDir
#END INSTALATION


OTHER_FILES += \
    qsamsungpc.desktop \
    LICENSE.txt \
    COPYING.txt \
    libvcard/AUTHORS \
    libvcard/LICENSE

SOURCES += main.cpp\
        mainwindow.cpp \
    libvcard/vcard.cpp \
    libvcard/vcardproperty.cpp \
    libvcard/vcardparam.cpp \
    loadingDialog.cpp \
    loadingthread.cpp \
    progressdialog.cpp \
    backup_thread.cpp \
    qmobex/qmobex.cpp \
    qmobex/qextserialport/posix_qextserialport.cpp \
    qmobex/qextserialport/qextserialbase.cpp

HEADERS  += mainwindow.h \
    libvcard/vcard.h \
    libvcard/vcardproperty.h \
    libvcard/vcardparam.h \
    loadingDialog.h \
    loadingthread.h \
    progressdialog.h \
    backup_thread.h \
    qmobex/src/qmobex_global.h \
    qmobex/src/qmobex.h \
    qmobex/qmobex.h \
    qmobex/qextserialport/qextserialbase.h \
    qmobex/qextserialport/posix_qextserialport.h

FORMS    += mainwindow.ui \
    LoadingDialog.ui \
    ProgressDialog.ui
